//
//  HKNextButton.swift
//  HoneyKeyboard
//
//  Created by Wade on 2025/1/21.
//

import Foundation
import UIKit

class HKNextButton:UIButton{
    var leftImageView:UIImageView = UIImageView()
    var rightImageView:UIImageView = UIImageView()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
        self.imageView?.removeFromSuperview()
        self.leftImageView.contentMode = .scaleAspectFill
        self.rightImageView.contentMode = .scaleAspectFill
        
        self.addSubview(self.leftImageView)
        self.addSubview(self.rightImageView)
        self.titleEdgeInsets = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 20)
        self.leftImageView.snp.makeConstraints { make in
            make.left.equalTo(self)
            make.width.height.equalTo(20)
            make.top.equalTo(2)
        }
    }
    


}
